home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 March
/
EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso
/
earcd
/
program
/
nwstrn11.lha
/
NewString11
/
NewStringHook.doc
< prev
next >
Wrap
Text File
|
1996-01-16
|
4KB
|
151 lines
NewStringHook 1.1 (C) Copyright 1995 Doguet Emmanuel
(12.12.95)
COPYRIGHTS
----------
This Link-libraries are Freeware. They can be distribute on Disk, CD-ROM,
servers, networks, magasines..
If you use it on your program, please insert in your documentation the
copyright of the StringHook, something like:
'This program use the NewStringHook (C) Copyright 1995-1996 Doguet Emmanuel'
And please send me a post card.
For post card, suggestion, report or greeting:
----------------------------------------------
DOGUET Emmanuel
4, rue de Cornouailles
50130 OCTEVILLE
FRANCE
Usenet: manu@ramses.fdn.org
Fidonet: 2:320/104.64
INTRODUCTION
------------
The string class of intuition.library have a bug, we can't set an entire
string of character it only display MAX.CHAR. -1. For example, when we
create a string with 5 max. char. and we want to set ( SetGadgetAttrs.. ) a
string on it, it will display only the 4 first characters.
This link-librarie contain 3 hook who repair this BUG !
FEATURES
--------
The librarie contain 3 HOOK: StringHook, StringHookReturn and StringHookCommand.
They repair the Intuition bug, but they have too.. :
* StringHook:
- ALT-CURSOR (UP|DOWN): go to another string (if TABCYCLE-MODE ON).
- ESC: Deactive the string gadget.
* StringHookReturn:
- ALT-CURSOR (UP|DOWN): go to another string (if TABCYCLE-MODE ON).
- ESC: Deactive the string gadget.
- RETURN: When you validate a string, it will activate the next string-gadget
(if TABCYCLE-MODE ON).
* StringHookCommand:
- ALT-CURSOR (UP|DOWN): go to another string (if TABCYCLE-MODE ON).
- ESC: Deactive the string gadget.
- When RAMIGA or LAMIGA with a <char>, it will active button who have
the shortcut: <char> or menu who have the shortcut LAMIGA + <char>.
PACKAGE
-------
Dice/StringHookS.lib ......... Link-libraries for DICE Pro
Dice/StringHookSR.lib
SAS/StringHook.lib ......... Link-libraries for SAS/C
Include/StringHook.h ......... C-Include
Include/NewString_macros.h ......... C-macros for BGUI users
Demo ......... Demo of the hook
( need the bgui.library ).
NewStringHook.doc ......... This documentation!
USAGE
-----
If you want a string gadget with 5 characters, create it with 6 max
characters, the hook will stop the edition at MAX - 1 characters also we
can't enter only 5 characters.
And affect the hook to your string gadget, it will do something like:
[....]
STRINGA_MaxChars, max + 1,
STRINGA_EditHook, (ULONG)&StringHook,
[....]
or
[....]
STRINGA_MaxChars, max + 1,
STRINGA_EditHook, (ULONG)&StringHookReturn,
[....]
For users of the bgui.library, you can use the macro in "NewString_macros.h".
DISCLAIMER
----------
In spite of numerous tests, I can't guarantee that this hooks contains no
errors. You use this at your own risk. I won't be in charge if the use of
hooks is responsible for any direct or indirect damages.
HISTORY
-------
Version Description
------------------------------------------------------------------------------------
1.0 First release.
1.1 Add new hook, for enable Left or Right Amiga command
(see above).
**END**